package org.dubnation.user.domain;

import org.dubnation.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2023-11-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Component
public class LoginInfo extends BaseDomain{

    private static final long serialVersionUID = 1L;
    public static final Integer TYPE_ADMINISTRATORS = 0; //管理员
    public static final Integer TYPE_USER = 1;  //用户
    public static final Integer DISABLE_UNAVAILABLE = 0;  //不可用
    public static final Integer DISABLE_AVAILABLE = 1;  //可用

    private Long id;
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    /**
     * 0 代表管理员 1 用户
     */
    private Integer type;
    /**
     * 0 不可以用 1 可用
     */
    private Integer disable;


}
